home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Hyper / P / Palet.cpt / Palette XFCN / stack.txt < prev   
Text File  |  1988-09-20  |  9KB  |  247 lines

  1. -- stack: in
  2. -- format: 8 (HyperCard 1)
  3. -- flags: 0x1000 (none)
  4. -- protect password hash: 0
  5. -- maximum user level: 5 (scripting)
  6. -- window: Rect(x1=0, y1=0, x2=0, y2=0)
  7. -- screen: Rect(x1=0, y1=0, x2=0, y2=0)
  8. -- card dimensions: w=0 h=0
  9. -- scroll: x=0 y=0
  10. -- background count: 2
  11. -- first background id: 2669
  12. -- card count: 7
  13. -- first card id: 4434
  14. -- list block id: 6873
  15. -- print block id: 0
  16. -- font table block id: 0
  17. -- style table block id: 0
  18. -- free block count: 0
  19. -- free size: 0 bytes
  20. -- total size: 60928 bytes
  21. -- stack block size: 5632 bytes
  22. -- created by hypercard version: 0x01208000
  23. -- compacted by hypercard version: 0x01208000
  24. -- modified by hypercard version: 0x01208000
  25. -- opened by hypercard version: 0x01208000
  26. -- patterns[0]: 0x0000000000000000
  27. -- patterns[1]: 0x8000000008000000
  28. -- patterns[2]: 0x8800220088002200
  29. -- patterns[3]: 0x8888222288882222
  30. -- patterns[4]: 0x88AA22AA88AA22AA
  31. -- patterns[5]: 0xCCAA33AACCAA33AA
  32. -- patterns[6]: 0xEEAABBAAEEAABBAA
  33. -- patterns[7]: 0xEEBBBBEEEEBBBBEE
  34. -- patterns[8]: 0xFFBBFFEEFFBBFFEE
  35. -- patterns[9]: 0xFFBBFFFFFFBBFFFF
  36. -- patterns[10]: 0x8010022001084004
  37. -- patterns[11]: 0xFFFFFFFFFFFFFFFF
  38. -- patterns[12]: 0x8822882288228822
  39. -- patterns[13]: 0x1122448811224488
  40. -- patterns[14]: 0xC4800C6843023026
  41. -- patterns[15]: 0xB130031BD8C00C8D
  42. -- patterns[16]: 0xAA00AA00AA00AA00
  43. -- patterns[17]: 0x8822552288225522
  44. -- patterns[18]: 0x8855225588552255
  45. -- patterns[19]: 0x77DD77DD77DD77DD
  46. -- patterns[20]: 0x8000000000000000
  47. -- patterns[21]: 0xAA55AA55AA55AA55
  48. -- patterns[22]: 0x038448300C020101
  49. -- patterns[23]: 0x8244394482010101
  50. -- patterns[24]: 0x8814224188412214
  51. -- patterns[25]: 0x8080413E080814E3
  52. -- patterns[26]: 0x22048C7422179810
  53. -- patterns[27]: 0xBE808808EB088880
  54. -- patterns[28]: 0x25C8328964244C92
  55. -- patterns[29]: 0xA29C41BE2AC914EB
  56. -- patterns[30]: 0x40A00000040A0000
  57. -- patterns[31]: 0x8040200002040800
  58. -- patterns[32]: 0xAA00800088008000
  59. -- patterns[33]: 0xFF80808080808080
  60. -- patterns[34]: 0x081C22C180010204
  61. -- patterns[35]: 0xFF808080FF080808
  62. -- patterns[36]: 0xF87422478F172271
  63. -- patterns[37]: 0xBF00BFBFB0B0B0B0
  64. -- patterns[38]: 0xFF7FBE5DA2418000
  65. -- patterns[39]: 0xFAF5FAF5A050A050
  66. -- checksum: 0x0
  67. ----- HyperTalk script -----
  68. on controlKey which
  69.   if which is 9 then
  70.     put Palette("Toggle") into temp
  71.   end if
  72.   pass controlKey
  73. end controlKey
  74.  
  75. on doMenu which
  76.   if which is "S" then
  77.     put Palette("Show") into temp
  78.   else
  79.     if which is "A" then
  80.       go to next card in this bkgnd
  81.     else
  82.       if which is "B" then
  83.         go to prev card in this bkgnd
  84.       else
  85.         if which is "C" then
  86.           if the id of this card is "card id 3058" then
  87.             visual effect iris close
  88.             go to card id 4434
  89.             exit doMenu
  90.           end if
  91.           visual effect dissolve very slowly
  92.           go to card id 3058
  93.           show menuBar
  94.         else
  95.           if which is "D" then
  96.             repeat with i = 1 to (the number of cds in this bkgnd)
  97.               go to next card in this bkgnd
  98.               wait for 15 ticks
  99.             end repeat
  100.           else
  101.             if which is "E" then
  102.               if visible of bkgnd btn "Oscar" is false then
  103.                 set lockScreen to true
  104.                 go to card id 3058
  105.                 show bkgnd btn "Oscar"
  106.                 show bkgnd field "About"
  107.               else
  108.                 set lockScreen to true
  109.                 hide bkgnd btn "Oscar"
  110.                 hide bkgnd field "About"
  111.               end if
  112.             else
  113.               if which is "F" then
  114.                 go home
  115.               else
  116.                 if which is "G" then
  117.                   ask "Dial what number?" with "1-203-555-1212"
  118.                   Dial it
  119.                 else
  120.                   if which is "H" then
  121.                     go to card "Obnoxious"
  122.                   else
  123.                     if which is "I" then
  124.                       answer "Do a complete ShutDown?" with "No way!" or "OK"
  125.                       if it is "OK" then
  126.                         go to card id 4434
  127.                         ShutMeDown
  128.                       end if
  129.                     else
  130.                       if which is "J" then
  131.                         answer "Erase all magnetic media for a city block?" with "Cancel" or "OK"
  132.                         if it is "OK" then
  133.                           hide menuBar
  134.                           set the location of card window to 500,500
  135.                           wait for 4 seconds
  136.                           answer "I know you already looked at the script." with "I'm No Fool!"
  137.                           set the location of card window to 0,0
  138.                           show menuBar
  139.                         else
  140.                           answer "Coward." with "Yo!"
  141.                         end if
  142.                       else
  143.                         if which is "K" then
  144.                           set lockScreen to true
  145.                           go to card id 3058
  146.                           show bkgnd field "Bucks"
  147.                         else
  148.                           if which is "L" then
  149.                             visual effect dissolve
  150.                             go to card id 3058
  151.                             set lockScreen to true
  152.                             go to card "States"
  153.                             playInd
  154.                           else
  155.                             if which is "M" then
  156.                               answer "Wipe out civilization as we know it?" with "Cancel" or "OK"
  157.                               if it is "OK" then
  158.                                 Nukem
  159.                                 Nukem
  160.                                 answer "Civilization destroyed." with "OK"
  161.                               end if
  162.                             else
  163.                               if which is "N" then
  164.                                 push card
  165.                                 go to card id 3058
  166.                                 show bkgnd field "Smile"
  167.                                 wait for 90 ticks
  168.                                 hide bkgnd field "Smile"
  169.                                 Nukem
  170.                                 pop card
  171.                               else
  172.                                 if which is "O" then
  173.                                   visual effect iris open
  174.                                   set icon of bkgnd btn "Boing" to 3849
  175.                                   show bkgnd btn "Boing"
  176.                                   go to card id 3058
  177.                                 else
  178.                                   if which is "P" then
  179.                                     MoveCard up
  180.                                   else
  181.                                     if which is "Q" then
  182.                                       MoveCard down
  183.                                     else
  184.                                       if which is "R" then
  185.                                         go to card "Space"
  186.                                       else
  187.                                         pass doMenu
  188.                                       end if
  189.                                     end if
  190.                                   end if
  191.                                 end if
  192.                               end if
  193.                             end if
  194.                           end if
  195.                         end if
  196.                       end if
  197.                     end if
  198.                   end if
  199.                 end if
  200.               end if
  201.             end if
  202.           end if
  203.         end if
  204.       end if
  205.     end if
  206.   end if
  207. end doMenu
  208.  
  209.  
  210. on idle
  211.   global pickedOne
  212.   put Palette ("Update") into temp
  213.   if pickedOne is not empty then doMenu pickedOne
  214.   put empty into pickedOne
  215.   pass idle
  216. end idle
  217.  
  218.  
  219.  
  220. on MoveCard which
  221.   put item 1 of the location of card window into myHoriz
  222.   put item 2 of the location of card window into myVert
  223.   if which is "up" then
  224.     set the location of card window to myHoriz,myVert-100
  225.   else
  226.     set the location of card window to myHoriz,myVert+100
  227.   end if
  228.   if the location of card window is not "0,0" then
  229.     answer "Whoa!" with "I'm Afraid" or "No Problem"
  230.     if it is "I'm Afraid" then set the location of card window to 0,0
  231.   end if
  232. end MoveCard
  233.  
  234. on playInd
  235.   play "Harpsichord" tempo "220" "d4s ee. bs d5h de. es de. b4s"
  236.   play "Harpsichord" tempo "220" "a4q eh f#e. gs bq. f#e bq. ae gh ge."
  237.   play "Harpsichord" tempo "220" "g4s f#e. fs ee. gs c5h e4q de. gs"
  238.   play "Harpsichord" tempo "220" "b4h be. b#s c#5e. b4s f#h eq"
  239.   play "Harpsichord" tempo "220" "a4h ae. ds ee. bs d5h de. es de."
  240.   play "Harpsichord" tempo "220" "b4s aq eh f#4e. gs be. f#e bq"
  241.   play "Harpsichord" tempo "220" "a4q gh ge 0e g4e. as be. a#s be."
  242.   play "Harpsichord" tempo "220" "g4s ae. bs ae. f#s gq eh f#e. es"
  243.   play "Harpsichord" tempo "220" "d4q ge. bs d5e. a4s c5e. b4s gw"
  244.   show bkgnd field "Name It"
  245. end playInd
  246.  
  247.